import request from '@/utils/http'

/**
 * 获取角色菜单列表
 * @param params
 */
export function getRoleMenuList(params: any) {
	return request.get<Http.BaseResponse>({
		url: '/api/roleMenu',
		params: params
	})
}

/**
 * 设定角色菜单
 * @param params
 */
export function settingRoleMenu(params: any) {
	return request.post<Http.BaseResponse>({
		url: '/api/roleMenu/setting',
		params: params,
		showSuccessMessage: true
	})
}